home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / rayshade / libray / libtext / imagetext.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  1KB  |  43 lines

  1. /*
  2.  * imagetext.h
  3.  *
  4.  * Copyright (C) 1989, 1991, Craig E. Kolb
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  *
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  * $Id: imagetext.h,v 4.0 91/07/17 14:42:47 kolb Exp Locker: kolb $
  17.  *
  18.  * $Log:    imagetext.h,v $
  19.  * Revision 4.0  91/07/17  14:42:47  kolb
  20.  * Initial version.
  21.  * 
  22.  */
  23. #ifndef IMAGETEXT_H
  24. #define IMAGETEXT_H
  25.  
  26. #define TextImageCreate(s) TextCreate((TextRef)ImageTextCreate(s), \
  27.                 ImageTextApply)
  28.  
  29. typedef struct {
  30.     Image    *image;        /* image to use */
  31.     Surface *surf;        /* Alternative surface */
  32.     int    component,    /* component to texture */
  33.         smooth;        /* interpolate pixel values? */
  34.     Float    lo, hi;        /* high and low values in image */
  35.     Float    tileu, tilev;    /* tiling control */
  36.     Mapping    *mapping;
  37. } ImageText;
  38.  
  39. extern ImageText *ImageTextCreate();
  40. extern void ImageTextApply(), ImageTextSetComponent();
  41.  
  42. #endif /* IMAGETEXT_H */
  43.